import json

dict ={"name":"zhangsan","age":18,"sex":"男"}
print(json.dumps(dict))

dict ={"name":"lisi","age":18,"sex":"nv"}
print(json.dumps(dict))